package t327.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import t327.mapper.Auditmapper;
import t327.pojo.TakeAwaySubmit;
import t327.service.iter.IAuditService;

import java.util.List;


@Service
@Transactional
public class AuditServiceImpl implements IAuditService {
    @Autowired
    private Auditmapper auditmapper;

    @Override
    public List<TakeAwaySubmit> queryAll() {
        return auditmapper.queryAll();
    }

    @Override
    public int updateTakeAwaySubmit(Long id, Long takeAwayStatus) {
        return auditmapper.updateTakeAwaySubmit(id,takeAwayStatus);
    }


    @Override
    public int deleteAuditById(Long id) {
        return auditmapper.logicDeleteAuditById(id);
    }


}
